﻿#include "Boss.h"

void Boss::Attach(shared_ptr<Observer> observer)
{
    this->observers.append(observer);
}

void Boss::Detach(shared_ptr<Observer> observer)
{
    this->observers.removeOne(observer);
}

void Boss::Notify()
{
    for (int i = 0; i < this->observers.size(); i++) {
        this->observers[i]->Update();
    }
}


